package junyi.power.effects;

import junyi.SSAKObject;

/**
 * User: Junyi BEI
 * Date: 12-9-30
 * Time: 下午1:53
 */
public abstract class Effect extends SSAKObject {
  /*
  effect shall not depend on the result from the previous effect (if any)
  */
  public final static int EFFECT_SUCCESS = 1;
  public final static int EFFECT_UNDETERMINED = 0;
  public final static int EFFECT_FAILURE = -1;

  protected EffectSource effectSource;

  protected Effect(EffectSource effectSource) {
    this.effectSource = effectSource;
  }



  public abstract int start();

  public EffectSource getEffectSource() {
    return effectSource;
  }

  public void setEffectSource(EffectSource effectSource) {
    this.effectSource = effectSource;
  }
}
